<template>
  <div class="movie-container">
    <h3>Movie 组件</h3>
    <button @click="getId">打印this</button>
  </div>
</template>

<script>
export default {
  name: 'Movie',
  methods:{
    getId(){
      console.log(this)
      console.log(this.$route.query)
    }
  }
}
</script>

<style lang="less" scoped>
.movie-container {
  min-height: 200px;
  background-color: lightsalmon;
  padding: 15px;
}
</style>
